<?php
use yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\captcha\Captcha;
use common\models\LoginImage;
/* @var $this yii\web\View */
/* @var $form yii\bootstrap\ActiveForm */
/* @var $model common\models\LoginForm */

//$this->title = 'Login';
//$this->params['breadcrumbs'][] = $this->title;

?>

<div class="site-login">
    <?php $form = ActiveForm::begin([
        'id' => 'login-form',
        'options' => ['class' => 'form-horizontal'],
        'fieldConfig' => [
            'template' => "{label}\n<div class=\"col-lg-3\">{input}</div>\n<div class=\"col-lg-8\">{error}</div>",
            'labelOptions' => ['class' => 'col-lg-1 control-label'],
        ],
    ]); ?>
    <input type="hidden" class="admin_login_bg" name="admin_login_style">
    <?= $form->field($model, 'username') ?>
    <?= $form->field($model, 'password')->passwordInput()?>
    <div class="form-group">
        <div class="col-lg-offset-1 col-lg-11">
            <button type="submit" class="btn btn-primary" name="login-button">登&nbsp;&nbsp;&nbsp;&nbsp;录</button>
            
        </div>
        <div class="col-lg-offset-1 col-lg-11" style="margin-top:10px;">
            
        </div>
    </div>
    <?php ActiveForm::end();?>
</div>
<style>
*{margin:0;padding:0;}
.wrap{padding-top:0px;}
.qie_huan{width:120px;height:20px;position:absolute;top:0;left:0;}
.qie_huan span{display: inline-block;width:20px;height:20px;margin-left:9px;background:#777;text-align:center;line-height:20px;cursor: pointer; border-radius:10px;}
body{background: url('/images/bg_2.jpg') no-repeat center center;background-size: cover;}

.site-login{width:400px;padding-top:265px;margin:0 auto;}
.form-group{width:390px;}
.control-label{width:100px;}
.col-lg-3{width:250px;}
.col-lg-3 .row .col-lg-3{width:125px;}

.col-lg-8{float:right;over-flow:hidden;zoom:1;}
#loginform-verifycode{width:95px;}
.col-lg-offset-1{text-align:center;}
.col-lg-offset-1 button{width:200px;}
.control-label{color:#fff;font-size:16px;}
</style>